package com.zhen.Mapper;

import com.zhen.User.Admin;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {
    @Select("select * from admin where user=#{name} and password=#{password}")
    public Admin login(Admin admin);
    @Insert("insert into admin(user,password) values (#{name},#{password})")
    public int insert(Admin admin);
}
